package com.anycl.design.behavioral.mediator.instance;

import lombok.extern.slf4j.Slf4j;

/**
 * 买家
 */
@Slf4j
public class ColleagueBuyer extends Colleague {
    public ColleagueBuyer(MediatorCompany mediatorCompany) {
        super(mediatorCompany);
    }


    public void send(String message) {
        mediatorCompany.publish(message, this);
    }

    public void accept(String message) {
        log.info("买家接收到的消息是：" + message);
    }

}
